/**
 * 开始相机飞行
 */
var initX = 106.74852848052977;
var initY = 39.42916592322376;
var initZ = 500;
var flyCameraBool = true;

function flyCamera() {
    if (!flyCameraBool) {
        return
    }
    initX = initX + 0.05;
    initY = initY + 0.05;
    initZ = initZ + 50;
    if (initX > 108) {
        flyCameraBool = false;
        return;
    }
    var pt = Cesium.Cartographic.fromDegrees(initX, initY, initZ);
    var ellipsoid = viewer.scene.globe.ellipsoid;
    var cartesian3 = ellipsoid.cartographicToCartesian(pt);
    globleSetCamera({
        "X": cartesian3.x,
        "Y": cartesian3.y,
        "Z": cartesian3.z,
        "Heading": Cesium.Math.toRadians(45),
        "Pitch": Cesium.Math.toRadians(-10),
        "Duration": 8000
            //"Heading": Cesium.Math.toRadians(bearing(marks[0].Y, marks[0].X, marks[1].Y, marks[1].X))
    }, flyCamera);
};